import Vue from 'vue'
import Vuex from 'vuex'
import app from './modules/app.js'
import user from './modules/user.js'
import getters from './getters.js'

// vue挂咋vuex
Vue.use(Vuex)

// 创建vue存储库
const store = new Vuex.Store({
  getters,
  modules: {
    app,
    user
  }
})

export default store
